package com.futureway.test.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.futureway.test.proxy.OrderServiceProxy;

@RestController
@RequestMapping("/order/proxy")
public class OrderProxyController {

	@Autowired
	private OrderServiceProxy orderServiceProxy;

	@GetMapping("user/page2")
	public void userPage2() {

		orderServiceProxy.userPage2();

	}

	@GetMapping("user/page")
	public void userPage() {

		orderServiceProxy.userPage(20, 1);

	}

}
